#include<iostream>
using namespace std;
char arr[100];
int main()
{
	int n;
	cin >> n;
	int i = 0;
	memset(arr, '0', sizeof(arr));
	while (n) {
		char t = n % 10 + '0';
		arr[100 - i] = t;
		n /= 10;
		i++;
	}
	for (int i = 1; i <= 100; i++) {
		cout << arr[i] << " ";
	}
}